package com.xiaoshuidi.cloud.module.rooms.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xiaoshuidi.cloud.framework.tenant.core.db.TenantBaseDO;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

@TableName(value = "room_receipt", autoResultMap = true)
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class RoomReceipt extends TenantBaseDO implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 账单id
     */
    private Long orderId;
    /**
     * 账单类型 ：房源定金
     */
    private String orderType;
    /**
     * 开票日期
     */
    private LocalDate invoicingDate;
    /**
     * 租客名称
     */
    private String customerName;
    /**
     * 租客身份证号
     */
    private String customerIdCard;
    /**
     * 交易金额
     */
    private BigDecimal amount;
    /**
     * 支付方式
     */
    private String payMethod;
    /**
     * 开票人名称
     */
    private String drawerName;
    /**
     * 收款人名称
     */
    private String payeeName;
    /**
     * 是否作废 0：未作废  1：已作废
     */
    private Integer isCancel;
    /**
     * 财务章url地址
     */
    private String financialSealUrl;
    /**
     * 预定人id
     */
    private Long bookerId;
    /**
     * 收据pdf
     */
    private String pdfUrl;
}
